package cn.org.donald.framework.auth.pojo.dto;

import cn.org.donald.framework.annotation.IntegerLimit;

import javax.validation.constraints.NotBlank;

/**
 * @author : Donald
 * @since : 2021/1/21 9:47
 */
public class RegisterDto {

    @NotBlank(message = "用户名不能为空!")
    private String userName;

    @NotBlank(message = "用户密码")
    private String password;

    private String phone;

    @NotBlank(message = "用户邮箱不能为空!")
    private String email;

    private String nickName;

    @NotBlank(message = "真实姓名不能为空!")
    private String realName;

    @IntegerLimit(includes = {0,1,2}, message = "性别请选择0:男;1:女;2:未知")
    private Integer sex;

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }
}
